home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / T / Think C dcmd 1.0.1.sit / Think C dcmd 1.0.1 ƒ / Think Put Lib source / PutTextTo.c < prev    next >
MacBinary  |  1994-08-31  |  1.0 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: PutTextTo.c

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Aug 31 18:54:24 1994, modified Wed Aug 31 18:54:24 1994, creator Think C, type ASCII, 412 bytes "PutTextTo.c" , at 0x21c 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 50 75 74 54 65 78 | 74 54 6f 2e 63 00 00 00 |..PutTex|tTo.c...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 01 9c 00 | 00 01 7e aa 8a ba a0 aa |........|..~.....|
|00000060| 8a ba a0 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 e4 a9 00 00 |........|........|
|00000080| 09 65 78 74 65 72 6e 09 | 75 6e 73 69 67 6e 65 64 |.extern.|unsigned|
|00000090| 20 63 68 61 72 09 5f 5f | 70 75 74 42 75 66 66 65 | char.__|putBuffe|
|000000a0| 72 5b 32 35 36 5d 3b 0d | 09 65 78 74 65 72 6e 09 |r[256];.|.extern.|
|000000b0| 73 68 6f 72 74 09 09 09 | 5f 5f 70 75 74 4d 61 72 |short...|__putMar|
|000000c0| 6b 3b 0d 0d 76 6f 69 64 | 20 50 75 74 43 68 61 72 |k;..void| PutChar|
|000000d0| 28 63 68 61 72 20 63 29 | 3b 0d 76 6f 69 64 20 50 |(char c)|;.void P|
|000000e0| 75 74 53 70 61 63 65 73 | 54 6f 28 69 6e 74 20 65 |utSpaces|To(int e|
|000000f0| 6e 64 70 6f 73 29 3b 0d | 0d 76 6f 69 64 20 50 75 |ndpos);.|.void Pu|
|00000100| 74 54 65 78 74 54 6f 28 | 63 6f 6e 73 74 20 63 68 |tTextTo(|const ch|
|00000110| 61 72 2a 20 73 2c 20 69 | 6e 74 20 6c 65 6e 2c 20 |ar* s, i|nt len, |
|00000120| 69 6e 74 20 65 6e 64 70 | 6f 73 29 0d 7b 0d 09 09 |int endp|os).{...|
|00000130| 69 6e 74 20 69 3b 0d 09 | 09 0d 09 69 66 20 28 20 |int i;..|...if ( |
|00000140| 65 6e 64 70 6f 73 20 3e | 20 5f 5f 70 75 74 4d 61 |endpos >| __putMa|
|00000150| 72 6b 20 29 0d 09 7b 09 | 0d 09 09 66 6f 72 20 28 |rk )..{.|...for (|
|00000160| 20 69 3d 30 3b 20 69 3c | 6c 65 6e 20 26 26 20 5f | i=0; i<|len && _|
|00000170| 5f 70 75 74 4d 61 72 6b | 3c 65 6e 64 70 6f 73 3b |_putMark|<endpos;|
|00000180| 20 69 2b 2b 20 29 0d 09 | 09 09 50 75 74 43 68 61 | i++ )..|..PutCha|
|00000190| 72 28 20 73 5b 69 5d 20 | 29 3b 0d 09 09 09 0d 09 |r( s[i] |);......|
|000001a0| 09 69 66 20 28 20 69 20 | 3c 20 6c 65 6e 20 29 0d |.if ( i |< len ).|
|000001b0| 09 09 09 5f 5f 70 75 74 | 42 75 66 66 65 72 5b 5f |...__put|Buffer[_|
|000001c0| 5f 70 75 74 4d 61 72 6b | 5d 20 3d 20 27 c9 27 3b |_putMark|] = '.';|
|000001d0| 0d 09 09 65 6c 73 65 0d | 09 09 09 50 75 74 53 70 |...else.|...PutSp|
|000001e0| 61 63 65 73 54 6f 28 20 | 65 6e 64 70 6f 73 20 29 |acesTo( |endpos )|
|000001f0| 3b 09 09 2f 2a 20 70 61 | 64 73 20 77 69 74 68 20 |;../* pa|ds with |
|00000200| 73 70 61 63 65 73 20 69 | 66 20 6e 65 63 65 73 73 |spaces i|f necess|
|00000210| 61 72 79 20 2a 2f 0d 09 | 7d 0d 7d 0d 00 00 00 00 |ary */..|}.}.....|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000290| 99 8d 33 32 a5 c8 39 d5 | 46 e6 65 54 02 28 4c c3 |..32..9.|F.eT.(L.|
|000002a0| 10 48 fa 44 42 4f 94 cc | 2d 8d 24 00 89 92 00 00 |.H.DBO..|-.$.....|
|000002b0| 0b 50 75 74 54 65 78 74 | 54 6f 2e 63 02 00 02 00 |.PutText|To.c....|
|000002c0| 54 45 58 54 4b 41 48 4c | 01 00 ff ff ff ff 00 00 |TEXTKAHL|........|
|000002d0| 02 00 54 45 58 54 4b 41 | 48 4c 01 00 ff ff ff ff |..TEXTKA|HL......|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 aa 20 c4 f3 00 00 | 01 9c 00 00 01 7e 33 32 |... ....|.....~32|
|00000300| 9a bc 47 f5 5a 96 85 44 | 1f 2e 55 24 90 84 22 46 |..G.Z..D|..U$.."F|
|00000310| 22 54 93 b4 32 52 24 00 | 9e 62 13 20 05 28 8c 74 |"T..2R$.|.b. .(.t|
|00000320| 90 00 00 00 04 53 7e a1 | 00 85 06 16 54 85 5f 3c |.....S~.|....T._<|
|00000330| 91 48 18 83 11 45 e2 00 | 92 ac 63 08 c4 4e 30 e2 |.H...E..|..c..N0.|
|00000340| 20 d6 3e 8f 82 48 a9 54 | 42 12 24 00 1e 62 7d 26 | .>..H.T|B.$..b}&|
|00000350| 53 8c 99 99 98 65 2a 54 | 49 29 20 46 30 85 63 17 |S....e*T|I) F0.c.|
|00000360| 77 77 3c 7f ff a4 92 66 | 66 53 33 32 02 88 3b ef |ww<....f|fS32..;.|
|00000370| 46 e6 84 00 04 78 55 18 | fd 02 fa 4a 22 44 90 04 |F....xU.|...J"D..|
|00000380| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 06 | 00 04 00 2a 00 03 01 dd |........|...*....|
|000003b0| 02 7d 00 52 00 3c 01 dc | 02 6c aa 8a 74 68 00 00 |.}.R.<..|.l..th..|
|000003c0| 01 3e 00 00 01 3e 00 00 | 00 00 00 00 00 00 01 00 |.>...>..|........|
|000003d0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 92 71 a4 |...L...L|...2..q.|
|000003e0| 12 00 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|000003f0| 00 0a 03 ed ff ff 00 00 | 00 00 00 92 6d 78 00 00 |........|....mx..|
+--------+-------------------------+-------------------------+--------+--------+